<?php
$sqlSel = "SELECT * FROM ovf_uorg WHERE id_uorg_padre = 0 ORDER BY cod_uorg";
$objDB->exec($sqlSel,"caricaAree");
$aUorg = array(0=>"--- SETTORE ---");
while($aRow = $objDB->fetch("caricaAree")) {
	$aUorg[$aRow['id_uorg']] = $aRow['cod_uorg']." - ".$aRow['descr'];
}

$aCamForm = array();
$rr=10;
$aCamForm[$rr][] = array('cod_uorg', 'Codice', 4,16,'text',32, 32);
$rr=20;
$aCamForm[$rr][] = array('descr', 'Descrizione', 4,16,'text',64, 64);
$rr=30;
$aCamForm[$rr][] = array('id_uorg_padre', 'Settore', 4,16,'select',$aUorg);
